$vw_design: 750;
$vw_fontsize: math.div($vw-design, 10);

@function rem($px) {
    @return math.div($px, $vw_fontsize) * 1rem;
}

@font-face {
    font-family: "DIN Alternate Bold";
    src: url("../assets/iconfont/DIN Alternate Bold.ttf");
}
html,
body,
* {
    box-sizing: border-box;
}
html {
    font-size: math.div($vw_fontsize, math.div($vw_design, 2)) * 100vw;
    background: #efefef;

    @media screen and (max-width: 320px) {
        font-size: 64PX;
    }

    @media screen and (min-width: 540px) {
        font-size: 108PX;
    }

    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

body {
    max-width: 540PX;
    min-width: 320PX;
    margin: 0 auto !important;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Droid Sans", "PingFang SC", Helvetica, sans-serif;
    -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
    user-select: none;
    line-height: normal;
    background-color: #f4f4f4;
    color: rgb(0 0 0 / 90%);
    // height: 100vh;
    overflow: auto;
    [class~="van-overlay"] {
        background-color: rgb(0 0 0 / 30%);
    }
}

#baidu_jsapi_watermark {
    opacity: 0;
}

.xc_loading {
    background: rgb(237 239 242 / 50%) !important;
    backdrop-filter: blur(15px);
    padding: 0 !important;
    .van-icon__image {
        display: block;
    }
    .van-toast__text {
        margin-top: 6px;
        font-size: 12px;
        font-weight: 400;
        color: #333333;
        line-height: 17px;
    }
}
[class~="van-popup--bottom"] {
    border-radius: 10px 10px 0 0 !important;
}

[class~="van-calendar__confirm"] {
    border-radius: 6px !important;
}

// 日期选择器 范围
.calendar-custom {
    [class~="van-calendar__footer"] {
        border-top: 0.5px solid #eeeeee;
    }
    [class~="calender-text-custom"] {
        align-items: flex-end !important;
        font-size: 14px !important;
        padding-bottom: 5px;
    }
    // 日期选择器底部自定义
    [class~="daterange-box"] {
        display: flex;
        justify-content: space-between;
        padding: 10px 14px;
        .date-item-label {
            font-size: 11px;
            color: #848484;
        }
        .date-item-value {
            font-size: 13px;
            color: #333333;
            font-weight: 600;
        }
    }
}

//---常用类样式
.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-ac {
    display: flex;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-bt {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.width-100 {
    width: 100px;
}

.width-120 {
    width: 120px;
}

.width-height-full {
    width: 100%;
    height: 100%;
}

.fw-bold {
    font-weight: bold;
}

.mb-8 {
    margin-bottom: 8px;
}

.ml-10 {
    margin-left: 10px;
}

a {
    text-decoration: none;
    color: #397ff8;
}
::-webkit-scrollbar {
    width: 0;
}

[class~="van-popover__arrow"] {
    bottom: 1px !important;
}

[class~="van-popup__close-icon"] {
    display: none !important;
}

[class~="van-calendar__footer"] {
    margin-bottom: 8px;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.my-top-toast {
    top: 32% !important;
}

html,
body,
#app {
    box-sizing: border-box;
}
.van-tab {
    align-items: flex-start !important;
}

[class~="van-tabs__wrap"] {
    border-bottom: 0.5px solid #eeeeee;
}
[class~="van-tab__text--ellipsis"] {
    font-weight: 400;
    font-size: 15px;
    color: #848484;
    margin-top: 8px;
}
[class~="van-tab--active"] {
    [class~="van-tab__text--ellipsis"] {
        font-weight: 600;
        color: #333333 !important;
    }
}
[class~="van-tabs__line"] {
    width: 20px !important;
    height: 4px !important;
    bottom: 22px !important;
    background: #e60044 !important;
    border-radius: 2px !important;
    z-index: 0 !important;
}
